// import lazy from '@/directives/modules/lazy'

/**
 * 全局注册指令
 */
export default {
  install(app) {
    // app.directive('lazy',lazy)
    const directives = import.meta.globEager('./modules/*.js')
    for (const [key,value] of Object.entries(directives)) {
      const arr = key.split('/')
      const name = arr[arr.length -1].replace('.js','')
      app.directive(name,value.default)
    }
  }
}
